<template>
	<div>
	<div class="da1">
		<!-- 头部 -->
		<!-- 面包屑导航 -->
		
		 <el-menu style="width: 100%;height: 60px;background-color: rgb(245,245,245);" 
		 :default-active="activeIndex" class="el-menu-demo"
		  mode="horizontal" @select="handleSelect">
		  <el-menu-item class="el-icon-s-home" index="1" @click="welcome()">众筹首页</el-menu-item>
		  <el-menu-item class="el-icon-menu" index="2" @click="xmzl()">项目总览</el-menu-item>
		  <el-menu-item class="el-icon-edit-outline" index="3" @click="agree()">发起众筹</el-menu-item>	  	  	  
		  <el-menu-item class="el-icon-s-custom" index="4" @click="user()">我的众筹</el-menu-item>	 
		 </el-menu>
		<!-- 中间 -->
		<div class="zhong1">
			<router-view></router-view>
		</div>
		 <!-- 尾部 -->
		<!-- <div class="wei"><el-button style="margin-top: 12px;position: relative;left: 43%;top: 30px;" @click="next($int++)">下一步</el-button></div> --> 
</div>
</div>
</template>

<script>
	  export default {
	    data() {
	      return {
	        active: 1,
			int:0
			
	      };
	    },
	
	    methods: {
			logout(){
				this.$router.push('/login')
			},
			xmfq1(){
				this.$router.push('/xmfq1')
			},
			//首页
			 welcome() {
			 	this.$router.push('/welcome')
			 },
			 //用户界面
			  user(){
			  	this.$router.push('/user')
			  },
			 // 协议
			 agree(){
				this.$router.push('/agree') 
			 },
			 // 项目总览
			 xmzl(){
			 				 this.$router.push('/xmzl') 
			 },
	     //  next(int) {
	     //          if (this.active++ > 2) this.active = 0;
				  // int++;
				  // if(int=1){
					 //  this.xmfq1();
				  // }
	     //        },
		  		
				
						
	    },
		mounted(){
			this.xmfq1();
		}
	  }

</script>

<style>
	.da1{
		width: 100%;
		margin-top: 20px;
		margin-left: -50px;
		/* height: 650px; */
		border: #D1C2D8 solid 1px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);border-radius: 4px;
	}
	.tou1{
		width: 100%;
		height: 80px;
		border-top: #D1C2D8 solid 1px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);border-radius: 4px;
	}
	.zhong1{
		width: 100%;
		/* height: 1000px; */
	}
</style>
